package cn.itsource.pethome.user.service;

import cn.itsource.pethome.Basic.service.IBaseService;
import cn.itsource.pethome.Basic.util.AjaxResult;
import cn.itsource.pethome.user.domain.User;
import cn.itsource.pethome.user.domain.dto.UserDto;

public interface IUserService extends IBaseService<User> {
    /**
     * 验证手机号是否被注册过
     * @param phone
     * @return
     */
    AjaxResult checkPhone(String phone);

    /**
     * 注册
     * @param userDto
     */
    void register(UserDto userDto);

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    User login(String username, String password);
}
